<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language ?>" lang="<?php print $language ?>">
  <head>
    <title><?php print $head_title ?></title>
    <?php print $head ?>
    <?php print $styles ?>
    <?php print $scripts ?>
    <style type="text/css" media="print">@import "<?php print base_path() . path_to_theme() ?>/print.css";</style>
    <!--[if lt IE 7]>
    <style type="text/css" media="all">@import "<?php print base_path() . path_to_theme() ?>/fix-ie.css";</style>
    <![endif]-->
  </head>
  <body>

<!-- NEW LAYOUT STYLE -->
<div id="aboutElement" class="ifxElement">
<div class="aboutWrap">
<?php if (variable_get('dashboard_about_text', '')): ?>
<?php print variable_get('dashboard_about_text', ''); ?>
<?php else: ?>
Please visit the <?php print l(t('dashboard settings'), 'admin/settings/dashboard'); ?> to set your about text.
<?php endif; ?>
</div>
</div>

<div id="departmentsElement" class="ifxElement">
<div class="menuWrap">
	<table id="departmentsElementTable">
	<?php for($i = 0; $i < count($departments); $i++): ?>
		<?php if (($i % 4) == 0): ?><tr><?php endif; ?>
	    <td><?php echo l(t($departments[$i]->name), 'topic/'.$departments[$i]->name); ?></td>
		<?php if ((($i % 4) == 3) or (($i + 1) == count($departments))): ?></tr><?php endif; ?>
	<?php endfor; ?>
    </table>
</div>
</div>

<div id="topicsElement" class="ifxElement">
<div class="menuWrap">
	<table id="topicsElementTable">
	<?php for($i = 0; $i < count($topics); $i++): ?>
		<?php if (($i % 4) == 0): ?><tr><?php endif; ?>
	    <td><?php echo l(t($topics[$i]->name), 'topic/'.$topics[$i]->name); ?></td>
		<?php if ((($i % 4) == 3) or (($i + 1) == count($topics))): ?></tr><?php endif; ?>
	<?php endfor; ?>
    </table>
</div>
</div>

<div id="headerWrap">
    <div id="header">
    	<div id="logo"><a href="<?php print $base_path; ?>">
    	    <img src="<?php print $logo; ?>"/>
	    </a></div>
		<div id="topicsButton" class="ifxElementButton">Topics</div>
		<div id="departmentsButton" class="ifxElementButton">Departments</div>
		<div id="aboutButton" class="ifxElementButton">About</div>
        <div class="clear"></div>
    </div>
</div>

<div class="clear"></div>
